import Https from "@/utils/Https";

export const queryPageDataReq = async (params) =>
  await Https.post("/selling/coupon/list", params);

export const addItemReq = async (params) =>
  await Https.post("/selling/coupon/add", params, true);
export const updateItemReq = async (params) =>
  await Https.post("/selling/coupon/update", params, true);
export const deleteItemReq = async (params) =>
  await Https.get("/selling/coupon/delete", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/selling/coupon/detail", params);

export const toggleStateReq = async (params) =>
  await Https.post("/selling/coupon/list", params, true);
